<%@page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
	String path= request.getContextPath();
	System.out.print(path);
	String basePath = request.getScheme() + "://"    + request.getServerName() + ":" + request.getServerPort()    + path + "/";
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>鄞州工业经济地图</title>
<link  href="pages/public/css/map.css" rel="stylesheet" type="text/css"/>
<script src="pages/public/js/jquery-1.4.4.min.js" type="text/javascript"></script>
<script>
$(document).ready(function(){
	 $(":radio").click( 
		function (){ 
		   var selected_r = $(this).val();
		   if(selected_r == 0){
				$(".zhen").fadeOut(1000);
				$(".xiang").fadeIn(1000);
				
		   }
		   	else if(selected_r == 1 ){
		   		$(".xiang").fadeOut(1000);
				$(".zhen").fadeIn(1000);
		   	}
			else{
				alert("联系管理员");
			}
		}); 
	disptime();
	
	$("#login").click(function(){
		//alert(1111)
		window.location.href="<%=path%>/login.jsp";
	});
	
});
//时钟展示函数
function disptime() 
{ 
	var time = new Date(); //获得当前时间
	var year = time.getFullYear();//获得年、月、日
	var month = time.getMonth()+1;
	var day = time.getDate(); 
	var hour = time.getHours(); //获得小时、分钟、秒 
	var minute = time.getMinutes(); 
	var second = time.getSeconds(); 
	var d = time.getDay();
	var apm="AM"; //默认显示上午: AM 
	if (hour>12) //按12小时制显示 
	{ 
	 hour=hour-12; 
	 apm="PM" ; 
	} 
	if (minute < 10) //如果分钟只有1位，补0显示 
	 minute="0"+minute; 
	if (second < 10) //如果秒数只有1位，补0显示 
	 second="0"+second; 
	/*设置文本框的内容为当前时间*/
	var arr_week=new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六");
 	var week=arr_week[d];
	var str=year+"年"+month+"月"+day+"日   "+hour+":"+minute+":"+second+" "+apm + week;
	$("#myclock").html(str); 
	/*设置定时器每隔1秒（1000毫秒），调用函数disptime()执行，刷新时钟显示*/ 
	var myTime = setTimeout("disptime()",1000); 

}
 function mapSearch(){
	 document.ActForm.action="/map/pages/public/Map!searchByKey.do"; 
	 ActForm.submit(); 
 }
 function companySearch(){
	 ActForm.submit();
 }
</script>
</head>

<body>
<div class="top">
	<div class="date" id="myclock"></div>
	<a class="top_button" id="login" href="javascript:void(0);"></a>
</div>
<div class="center">
	<div class="center_context">
		<div class="middle_search">
			<form  name="ActForm" action="/map/pages/public/Company!searchByKey.do" method="post">
			<div class="search"><input name="searchKey" id="search" size="68" type="text" style="height:39px; font-size:16px; position:relative;left:17px;top:11px"></div>
			<div class="button1"><s:a href="javascript:void(0);" onClick="companySearch()"><div class="button5"></div></s:a></div>
			<div class="button2"><s:a href="javascript:void(0);" onClick="mapSearch()">地图搜索</s:a></div>
			</form>
		</div>
		
		<div class="search_condition">
			<div style="width:719px; height:29px">
			<span style="font-size:16px;color:#6BB8E8">&nbsp;&nbsp;<strong>分类搜索</strong></span>
			<div style="height:2px;width:auto;background-color:#0A8AD9"></div>
			</div>
			<div class="title">企业类型：</div><div class="condition" id=""><span>
			<s:url action="Map!search" namespace="/pages/public" var="type1">
			     <s:param name="company_property">0</s:param>
			</s:url>
			<s:a href="%{type1}">50强企业</s:a>|
			<s:url action="Map!search" namespace="/pages/public" var="type2">
			     <s:param name="company_property">1</s:param>
			</s:url>
			<s:a href="%{type2}">100强企业</s:a>|
			<s:url action="Map!search" namespace="/pages/public" var="type3">
				<s:param name="company_property">2</s:param>
			</s:url>
			<s:a href="%{type3}">5+5企业</s:a></p>
			</div>
			<div class="title">销售资产：</div><div class="condition" id=""> <span>
			<s:url action="Map!search" namespace="/pages/public" var="fund1">
			     <s:param name="fund_min">0</s:param>
			     <s:param name="fund_max">1000</s:param>
			</s:url>
			<s:a href="%{fund1}">1000万元以下</s:a>|
			<s:url action="Map!search" namespace="/pages/public" var="fund2">
			     <s:param name="fund_min">1000</s:param>
			     <s:param name="fund_max">5000</s:param>
			</s:url>
			<s:a href="%{fund2}">1000万到5000万</s:a>|
			<s:url action="Map!search" namespace="/pages/public" var="fund3">
				<s:param name="fund_min">5000</s:param>
			</s:url>
			<s:a href="%{fund3}">5000万以上</s:a></p>
			</span></div>
			<div class="title">所属乡镇：</div>
			<div class="condition">			
			乡<input type="radio" class="" value="0" id="xiang" name="1"  />
			镇<input type="radio" class="" value="1" id="zhen" name="1" checked/>
				<div class="xiang" >
					<div style="margin:10px">
					<a style="font-size:14px" href="#">龙观乡</a>
					</div>
				</div>
				<div class="zhen">			
					<div style="margin:15px 0 0 15px">
						<a href="#">下应街道</a>|
						<a href="#">钟公庙街道</a>|
						<a href="#">石碶街道</a>|
						<a href="#">梅墟街道</a>|
						<a href="#">瞻岐镇</a>|
						<a href="#">咸祥镇</a>|
						<a href="#">塘溪镇</a>|
						<a href="#">东钱湖镇</a>|
						<a href="#">东吴镇</a>|<br>
						<a href="#">五乡镇</a>|
						<a href="#">邱隘镇</a>|
						<a href="#">云龙镇</a>|
						<a href="#">横溪镇</a>|
						<a href="#">姜山镇</a>|
						<a href="#">高桥镇</a>|
						<a href="#">横街镇</a>|
						<a href="#">集士港</a>|
						<a href="#">镇古林镇</a>|
						<a href="#">洞桥镇</a>|
						<a href="#">鄞江镇</a>|					
					</div>
				</div>
			</div>		
		</div>
	</div>
</div>
<div class="bottom">
宁波市鄞州区经济和信息化局
</div>
</body>
</html>